<form id="pagerForm" method="post" action="<?php echo site_url('index.php?m=role');?>">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="<?php echo $list['pager']->per_page;?>" />
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<?php echo site_url('index.php?m=role&a=add');?>" target="dialog" height="200"><span>添加</span></a></li>
            <li class="line">line</li>
			<li><a class="delete" href="<?php echo site_url('index.php?m=role&a=del');?>&role_id={sid}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
            <li class="line">line</li>
			<li><a class="edit" href="<?php echo site_url('index.php?m=role&a=edit');?>&role_id={sid}" target="dialog" height="200"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="75">
		<thead>
			<tr>
				<th width="30" align="center">ID</th>
				<th width="50" align="center">角色名称</th>
				<th width="80" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
            <?php foreach($list['rs'] as $v){?>
            <tr target="sid" rel="<?php echo $v['role_id'];?>">
                <td><?php echo $v['role_id'];?></td>
                <td><?php echo $v['role_name'];?></td>
                <td><a href="<?php echo site_url('index.php?m=role&a=set');?>&role_id=<?php echo $v['role_id'];?>" target="dialog" height="400" width="300" title="<?php echo $v['role_name'];?>-设置权限" rel="role_cate_tree">设置权限</a> | <a href="<?php echo site_url('index.php?m=role&a=edit');?>&role_id=<?php echo $v['role_id'];?>" target="dialog" height="200">编辑</a> | <a href="<?php echo site_url('index.php?m=role&a=del');?>&role_id=<?php echo $v['role_id'];?>" target="ajaxTodo" title="确定要删除吗?">删除</a></td>
            </tr>
            <?php }?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
            <?php
                $_pager_num_type = array(30,50,100);
            ?>
			<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
                <?php
                    foreach($_pager_num_type as $v){
                        echo '<option value="'.$v.'" '.($list['pager']->per_page == $v ? 'selected':'').'>'.$v.'</option>';
                    }
                ?>
			</select>
			<span>条，共<?php echo $list['pager']->getTotalCount();?>条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="<?php echo $list['pager']->getTotalCount();?>" numPerPage="<?php echo $list['pager']->per_page;?>" pageNumShown="5" currentPage="<?php echo $list['pager']->curr_page;?>"></div>

	</div>
</div>
